package com.mym.domain;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/9 11:31
 * @description
 */
public class Rectangle {
    private double length;
    private double hieght;

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getHieght() {
        return hieght;
    }

    public void setHieght(double hieght) {
        this.hieght = hieght;
    }
    public double getArae(){
        return length*hieght;
    }
    public double getPerimeter(){
        return 2*length+2*hieght;
    }
    public String getinfo(){
        return "长："+length+"宽"+hieght+"面积"+getArae()+"周长"+getPerimeter();
    }
}
